package com.example.Config;

import com.example.Utile.CityLanJieQi;
import com.example.Utile.CityLanJieQi_02;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by Administrator on 2017/5/4.
 */
@Configuration
public class CityHandlerInterceptor extends WebMvcConfigurerAdapter {

    public void addInterceptors(InterceptorRegistry registry){
        registry.addInterceptor(new CityLanJieQi()).addPathPatterns("/**");
//        registry.addInterceptor(new CityLanJieQi_02()).addPathPatterns("/**");
        super.addInterceptors(registry);
    }
}
